package org.jeecg.modules.xl.aftersale.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 售后单明细
 * @Author: jeecg-boot
 * @Date:   2024-11-03
 * @Version: V1.0
 */
@ApiModel(value="xl_customer_aftersale_detail对象", description="售后单明细")
@Data
@TableName("xl_customer_aftersale_detail")
public class XlCustomerAftersaleDetail implements Serializable {
    private static final long serialVersionUID = 1L;

	/**唯一标识*/

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "唯一标识")
    private Integer id;
	/**售后单号*/
    @ApiModelProperty(value = "售后单号")
    private String workorder;
    /**售后单状态（0:待审批，1:审批通过,2:审批不通过）*/
   // @Excel(name = "售后单状态（0:待审批，1:审批通过,2:审批不通过）", width = 15, dicCode = "audit_state")
    @Dict(dicCode = "audit_state")
    @ApiModelProperty(value = "售后单状态（0:待审批，1:审批通过,2:审批不通过）")
    private String woStatus;
	/**orderId*/
	@Excel(name = "orderId", width = 15)
    @ApiModelProperty(value = "orderId")
    private String orderId;
	/**订单编码*/
	@Excel(name = "订单编码", width = 15)
    @ApiModelProperty(value = "订单编码")
    private String orderCode;
	/**商品ID*/
	@Excel(name = "商品ID", width = 15)
    @ApiModelProperty(value = "商品ID")
    private String productId;

    /**upcCode*/
    @Excel(name = "upcCode", width = 15)
    @ApiModelProperty(value = "upcCode")
    private String upcCode;

    @TableField(exist = false)
    private String mainPic;

	/**产品价格*/
	@Excel(name = "产品价格", width = 15)
    @ApiModelProperty(value = "产品价格")
    private java.math.BigDecimal productPrice;

    /**商品名称*/
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    @TableField(exist = false)
    private String productName;
    /**订单数量*/
    @Excel(name = "订单数量", width = 15)
    @ApiModelProperty(value = "订单数量")
    @TableField(exist = false)
    private java.math.BigDecimal orderQuantity;
    /**订单金额*/
    @Excel(name = "订单金额", width = 15)
    @ApiModelProperty(value = "订单金额")
    @TableField(exist = false)
    private java.math.BigDecimal orderAmount;

    /**售后原因*/
    @Excel(name = "售后原因", width = 15, dicCode = "slt_aftersale_renson")
    @Dict(dicCode = "slt_aftersale_renson")
    @ApiModelProperty(value = "售后原因")
    private String reason;

    /**租户号*/
	@Excel(name = "租户号", width = 15)
    @ApiModelProperty(value = "租户号")
    private String tenantId;
	/**是否删除标志*/
	@Excel(name = "是否删除标志", width = 15)
    @ApiModelProperty(value = "是否删除标志")
    @TableLogic
    private Integer isDeleted;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**售后数量*/
	@Excel(name = "售后数量", width = 15)
    @ApiModelProperty(value = "售后数量")
    private java.math.BigDecimal aftersaleQuantity;

    /**包裹数量*/
    @Excel(name = "包裹数量", width = 15)
    @ApiModelProperty(value = "包裹数量")
    private Integer packageNum;
	/**售后金额*/
	@Excel(name = "售后金额", width = 15)
    @ApiModelProperty(value = "售后金额")
    private java.math.BigDecimal aftersaleAmount;
}
